package net.go176.openurl;

/*制作MineCraft小玄易的第一个纯自己写的插件操第一个就这么缺德 接下来不得更缺德啊？*/
import org.bukkit.plugin.java.JavaPlugin;

import java.io.IOException;
import java.net.URI;
import java.net.URL;

public final class main extends JavaPlugin {

    private Object String;

    @Override
    public void onEnable() {
        // Plugin startup logic
        St st = new St();

        boolean isOSLinux = false;

        if (isOSLinux == false) {
            String url = "https://www.go176.net";
            try {
                java.awt.Desktop.getDesktop().browse(URI.create(url));
            } catch (IOException e) {
                e.printStackTrace();
                System.out.println(url);
            }
        }else{
            /* Linux下的 */
            System.out.println("打开网页输入https://www.go176.net ");
            System.out.println("优质资源尽在剑客网");
        }
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
    }

    private class uri {
        public uri(String s) {
        }
    }
}
